package br.com.usp.shared;


import com.google.gwt.user.client.rpc.IsSerializable;

  
public class ConnectorDTO implements IsSerializable {

	private int id;
	private BMMDTO de;
	private BMMDTO para;
	
    public ConnectorDTO()
    {
      
    }
	
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public BMMDTO getDe(){
		return de;
	}
	public void setDe(BMMDTO de) {
		this.de = de;
	}
	public BMMDTO getPara() {
		return para;
	}
	public void setPara(BMMDTO para) {
		this.para = para;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((de == null) ? 0 : de.hashCode());
		result = prime * result + ((para == null) ? 0 : para.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ConnectorDTO other = (ConnectorDTO) obj;
		if (de == null) {
			if (other.de != null)
				return false;
		} else if (!de.equals(other.de))
			return false;
		if (para == null) {
			if (other.para != null)
				return false;
		} else if (!para.equals(other.para))
			return false;
		return true;
	}

 
 
	
	
	
}
